import React from 'react'
import {
  Router,
  Route,
  IndexRoute,
} from 'react-router'
import { AccountPage, Certification, CertificationSuccess } from '../account'
import { Homepage } from '../home'
import { TradePage } from '../trade'
import { TradePageMb } from '../mobile-page'
import App from './App'

export default (
  <Route path="/" component={App}>
    <IndexRoute component={Homepage} />
    <Route path="/account" component={AccountPage} />
    <Route path="/account/certification" component={Certification} />
    <Route path="/certification/success" component={CertificationSuccess} />
    <Route path="/trade" component={TradePage} />
    <Route path="/mobile/trade" component={TradePageMb} />
  </Route>
)